<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
</head>
<body>
<div th:fragment="tableBlock" class="widget-content nopaddingLR module-block">
    <div class="table-responsive">
        <table id="datatable" class="table table-striped data-table table-bordered" width="100%">
            <thead>
            <tr>
                <th class="table-head" id="ctaxGoodsCode">国税商品编码</th>
                <th class="table-head" id="ctaxGoodsName">国税商品名称</th>
                <th class="table-head" id="goodsCode">商品编码</th>
                <th class="table-head" id="goodsName">商品名称</th>
                <th class="table-head">操作</th>
            </tr>
            </thead>

            <tbody>
            <tr th:each="beans : ${formBean.list}">
                <td class="table-content" th:text="${beans.ctaxGoodsCode}"></td>
                <td class="table-content">
                    <p th:each="ctax:${formBean.ctaxGoodsCodeList}"
                       th:if="${ctax.ctaxGoodsCode} == ${beans.ctaxGoodsCode}" th:text="${ctax.ctaxGoodsName}"/>
                </td>
                <td class="table-content" th:text="${beans.goodsCode}"></td>
                <td class="table-content" th:text="${beans.goodsName}"></td>
                <td>
                    <div class="td-operate">
                        <a href="#" th:onclick="'javascript:editInfo(\'goodsCodes\',\''+${beans.guid}+'\');'"
                           class="td-edit">编辑</a>
                        <a href="#" th:onclick="'javascript:delConfirm(\'goodsCodes\',\''+${beans.guid}+'\');'"
                           class="td-del">删除</a>
                    </div>
                </td>
            </tr>

            </tbody>

        </table>
    </div>
</div>

</body>
</html>